<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <title>{:dingyi($c['name'],'全部分类')} - {:set('title')}</title>
	<meta name="keywords" content="{$c['keywords']}">
	<meta name="description" content="{$c['description']}">
    {include file="header"}
    <!--广告位置-->
    <div class="want">
        {:ad(2)} 
    </div>
    <div class="carbox clearfloat pb-10">
        <div class="carmat">
            <div class="widget-header"><h4>{:dingyi($c['name'],'全部分类')}</h4></div>
            <ul>
                {volist name=":fun_sd($c.m,array('f.open'=>1),$c['id'],'settop desc , times desc','10,false',0,'cate_m')" id="vo" empty="
                <div align='center' style='margin: 0 auto;'>
                    <img src='/public/img/empty.jpg' height='200' />
                    <h4 class='pt-20'>
                            没有更多的记录
                        </h4>
                </div>"}
                <li>
                    <div class="matcont">
                        <a href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}">
                            <h1 {if $vo.settop==1}style="color: #f10545;"{/if}>{$vo.title}</h1>
                            <div class="mattext">{:cut_c($vo.content,100)}</div>
                        </a>
                        <div class="like clearfloat">
                            <div class="zantime">	
                                <span class="headport"><img src="{:fun_u($vo.uid, 'userhead')}"/></span>
                                <span class="likename">{:fun_u($vo.uid, 'username')}</span>
                                <span class="liked"></span>
                                <span class="likename">{$vo.time|times}</span>
                            </div>
                            <div class="zanbox">	
                                <span class="zanbtn"></span><span class="zannum">{$vo.zan}</span>
                                <a href="javascript:;" class="cri"></a><span class="zannum">{:fun_st('comment', array('fid'=>$vo.id))}</span>
                            </div>
                        </div>
                    </div>
                </li>
                {/volist}
            </ul>
             <div class="pagination">
    		    {:fun_sd($c.m,array('f.open'=>1),$c['id'],'settop desc , times desc','10,false',0,'cate_m')->render()}
    		</div>
           
        </div>
        <!--右边-->
        <div class="drivebox">
            {if !$c.name}
            <!--全部-->
            {foreach name=":fun_S('cate_m',array('tid'=>0,'m'=>$c.m),'px desc','1000',1)" item="v" key="k"}
            <div class="industbox pb-10">
                <div class="widget-header"><h4>{$v.name}</h4>
                    <a class="gengduo" href="{:url('index/model/cate',array('alias'=>$v.alias))}"><i class="layui-icon">&#xe65b;</i>  </a>
                </div>
                <ul class="post-tags pt-10 pb-10">
                    {volist name=":fun_s('cate_m',array('tid'=>$v['id']),'px desc',100,1)" id="vo"}
                    <li>
                        <a {if $c.alias==$vo.alias}style="color: #FF5722;"{/if} href="{:url('index/model/cate',array('alias'=>$vo.alias))}">
        				{$vo.name}
        				</a>
        			</li>
        			{/volist}  
                </ul>
            </div>
            {/foreach}
            {else/}
            <!--独立顶级-->
            <div class="industbox pb-10">
                <div class="widget-header"><h4>{$name}</h4>
                </div>
                <ul class="post-tags pt-10 pb-10">
                    {volist name=":fun_s('cate_m',array('tid'=>$id,'m'=>$c.m),'px desc',100,1)" id="vo"}
                    <li>
                        <a {if $c.alias==$vo.alias}style="color: #FF5722;"{/if} href="{:url('index/model/cate',array('alias'=>$vo.alias))}">
        				{$vo.name}
        				</a>
        			</li>
        			{/volist}  
                </ul>
            </div>
            {/if}
            <!--热门文章-->
            <div class="industbox">
                <div class="widget-header"><h4>同类热门</h4></div>
                <div class="indust">
                    <ul>
                        {volist name=":fun_sd($c.m,array('f.open'=>1),$c['id'],'view desc','8',1)" id="vo"}
                        <li>
                            <a href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}" class="clearfloat">
                                <div class="industpic">
                                    <img src="{$vo.content|pic}" />
                                </div>
                                <div class="industcont">
                                    <h1>{$vo.title}</h1>
                                    <p>{:cut_c($vo.content,15)}</p>
                                </div>
                            </a>
                        </li>
                        {/volist}
                    </ul>
                </div>
            </div> 
        </div>
    </div>
    <!--预埋钩子-->
    {:hook('indexcate')}
    {include file="footer"}